package com.yuanfeng.userms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.userms.dto.UserSellerBaseDTO;
import com.yuanfeng.userms.entity.UserSellerBaseEntity;
import com.yuanfeng.userms.vo.UserSellerBaseVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface UserSellerBaseService extends IService<UserSellerBaseEntity> {

    /**
     * 根据shopId查询卖家信息
     *
     * @param returnMap
     * @return
     */
    ResponseResult getSellerInfo(Map<String, String> returnMap);

    /**
     * 添加子账号
     *
     * @param userSellerBase
     * @return
     */
    ResponseResult add(@RequestBody UserSellerBaseDTO userSellerBase);

    /**
     * 获取子账号
     *
     * @param paraMap
     * @return
     */
    ResponseResult get(@RequestBody Map<String, String> paraMap);

    /**
     * 删除子账号
     *
     * @param paraMap
     * @return
     */
    ResponseResult delete(@RequestBody Map<String, String> paraMap);

    /**
     * 编辑子账号
     *
     * @param paraMap
     * @return
     */
    ResponseResult update(@RequestBody Map<String, String> paraMap);


    /**
     * 查询店铺子账号列表
     *
     * @param shopId
     * @return
     */
    List<UserSellerBaseVO> getSellerBase(Integer shopId);
}
